//
//  WmcCameraSettingAPI.swift
//  YPWatermarkCamera
//
//  Created by Json on 2023/7/10.
//

import Foundation
import RxSwift

struct WmcCameraSettingAPI {
    
    /// 获取微信公众号关注状态
    static func getWechatFollowState() -> Single<WmcWechatFollowState> {
        var params: [String: Any] = [:]
        params["appId"] = YPWmcManager.shared.environmentType.wechatAppId
        return WmcMediaRequest.requestData(path: "/crm/v1/wechatFollow/checkSubscribe", parameters: params) { request in
            request.method = .post
        }.parseModelWithClass(WmcWechatFollowState.self).asSingle()
    }
}
